package com.hhxy.openfeign.rpc;

import com.hhxy.fallback.ServiceRollback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


/**
 * 定义feign接口
 */
@Component
@FeignClient(value = "remote-server",fallback = ServiceRollback.class)
public interface FeginService {
    @GetMapping("upload/{file}")
    public String getUpload(@PathVariable String file);
}
